algalcommand.math
Class CubicInterpolator

java.lang.Object
  extended by algalcommand.math.CubicInterpolator

public abstract class CubicInterpolator
extends java.lang.Object

used for the cubic interpolation of non-grid data


Constructor Summary
CubicInterpolator()
           
 
Method Summary
static java.lang.Double interpolateAtX(java.lang.Double x, java.awt.geom.Point2D n1, java.awt.geom.Point2D n2, java.awt.geom.Point2D n3, java.awt.geom.Point2D n4)
          Fits a cubic formula to the 4 points provided, than uses that formula to return the Y value at X.
static void main(java.lang.String[] a)
          for testing only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubicInterpolator

public CubicInterpolator()
Method Detail

interpolateAtX

public static java.lang.Double interpolateAtX(java.lang.Double x,
                                              java.awt.geom.Point2D n1,
                                              java.awt.geom.Point2D n2,
                                              java.awt.geom.Point2D n3,
                                              java.awt.geom.Point2D n4)
Fits a cubic formula to the 4 points provided, than uses that formula to return the Y value at X.

Parameters:
x -
n1 -
n2 -
n3 -
n4 -
Returns:

main

public static void main(java.lang.String[] a)
for testing only